package mspbots.cw.callbacks.core.notice;

import mspbots.cw.callbacks.core.CallbackMessage;
import org.springframework.core.io.buffer.DataBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * com.mspbots.sync.callback.services.BaseNoticeService
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/10/11
 */
public interface NoticeService {

    /**
     * Sender notice entity string
     *
     * @param callbackMessage notice entity str
     * @return void mono  time out
     */
    Long sender(CallbackMessage callbackMessage);

    /**
     * Sender notice entity string
     *
     * @param body notice entity str
     * @param signature notice entity str
     * @return void mono  time out
     */
    Mono<Boolean> verifying(Mono<String> body, String signature);

}
